import type { App } from 'vue'
import BSlider from './slider/index'
import BButton from './button/index'
import BSkeleton from './skeleton/index'
import '@/style/variables.css'

// 所有组件列表
const components = [
    BSlider,
    BButton,
    BSkeleton
]

// 定义 install 方法
const install = (app: App): void => {
    // 遍历注册所有组件
    components.forEach(component => {
        app.use(component)
    })
}

export default {install}